#!/usr/bin/env python

import wx

import component as c
import resource as r

class ToolBar(wx.ToolBar):
    '''ToolBar class
    
    @author Julot <andy.julot@gmail.com>
    @since Thursday, February 23, 2012. 03:38 PM'''
    
    def __init__(self, parent):
        style = wx.TB_HORIZONTAL | wx.TB_FLAT | wx.TB_NODIVIDER 
        super(ToolBar, self).__init__(parent, style=style)
        self.ToolBitmapSize = (16, 16)
        
        self.archive = c.ToolBarToolBase(self, r.toolbar.FolderZipper.Bitmap,
                                         r.string.menu.message.archive.help,
                                         r.string.menu.message.archive.help)
        self.archive.disable()
        
        self.delete = c.ToolBarToolBase(self, r.toolbar.CrossScript.Bitmap,
                                        r.string.menu.message.delete.help,
                                        r.string.menu.message.delete.help)
        self.delete.disable()
        
        self.recover = c.ToolBarToolBase(self,
                                         r.toolbar.ArrowContinue090Left.Bitmap,
                                         r.string.menu.message.recover.help,
                                         r.string.menu.message.recover.help)
        self.recover.disable()
        
        self.AddSeparator()
        
        self.read = c.ToolBarToolBase(self,
                                      r.toolbar.DatabaseImport.Bitmap,
                                      r.string.menu.message.read.help,
                                      r.string.menu.message.read.help)
        self.recover.disable()
        
        self.AddSeparator()
        
        self.export = c.ToolBarToolBase(self,
                                        r.toolbar.DocumentExcel.Bitmap,
                                        r.string.menu.message.export.label,
                                        r.string.menu.message.export.help)
        
        self.Realize()